<div class="form-compile">
	<form class="layui-form" lay-filter="add-form">
		<input type="hidden" name="typeCode" value=${typeCode} />
		<div class="layui-form-item">
			<label class="layui-form-label required">字典名</label>
			<div class="layui-input-inline">
				<input class="layui-input" type="text" name="valueName"
					lay-verify="required" placeholder="请输入字典名">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label required">字典编码</label>
			<div class="layui-input-inline">
				<input class="layui-input" type="text" name="valueCode"
					lay-verify="required" placeholder="请输入字典编码">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label required">排序</label>
			<div class="layui-input-inline">
				<input class="layui-input" type="text" name="sort"
					placeholder="请输入排序">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label required">状态</label>
			<div class="layui-input-inline">
				<select id="dataStatus" name="status" lay-verify="required"></select>
			</div>
		</div>
		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">备注</label>
			<div class="layui-input-block">
				<textarea placeholder="请输入内容" class="layui-textarea" name="remark"></textarea>
			</div>
		</div>
		<div class="layui-form-item form-finally">
			<button type="button" class="layui-btn" lay-submit="" 
				lay-filter="value-add" id="valueAddSave">保存</button>
			<button type="button" class="layui-btn" onclick="closePopup()">关闭</button>
		</div>
	</form>
</div>
<script>
$("#dataStatus").initSelectDict();
$("#valueAddSave").formSubmit({
	url: ctx+"/sys/dictValue/add"
});
</script>
